load("@fbsource//tools/build_defs:rust_library.bzl", "rust_library")

oncall("scm_server_infra")

rust_library(
    name = "print_graph",
    srcs = glob(["src/*.rs"]),
    autocargo = {"cargo_toml_config": {
        "dependencies_override": {"dependencies": {"sapling-dag-types": {"features": [
            "for-tests",
        ]}}},
        "extra_buck_dependencies": {"dependencies": [
            "//eden/scm/lib/dag:dag",
            "//eden/scm/lib/dag/dag-types:dag-types",
        ]},
    }},
    deps = [
        "fbsource//third-party/rust:anyhow",
        "fbsource//third-party/rust:futures",
        "//eden/mononoke/blobstore:blobstore",
        "//eden/mononoke/cmdlib/displaying:cmdlib_displaying",
        "//eden/mononoke/mononoke_types:mononoke_types",
        "//eden/mononoke/repo_attributes/bonsai_git_mapping:bonsai_git_mapping",
        "//eden/mononoke/repo_attributes/bonsai_globalrev_mapping:bonsai_globalrev_mapping",
        "//eden/mononoke/repo_attributes/bonsai_hg_mapping:bonsai_hg_mapping",
        "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph",
        "//eden/mononoke/repo_attributes/repo_blobstore:repo_blobstore",
        "//eden/mononoke/server/context:context",
        "//eden/scm/lib/dag:dag-lite",
    ],
)
